function Data = DataRead(fid, numElements, dataType, type)
    % 读取下一组数据
    if(type=="example")
        Data = fread(fid, numElements, dataType);
    
        % 如果到达文件末尾，返回空数组
        if isempty(Data)
            Data = [];
        end
    elseif(type=="our")
        str2 = '%RAWIMUSA';
        Data=zeros(7,1);
        while(true)
            tline = fgets(fid);%读取一行
            split_data = strsplit(tline,{',',';','*'});
            str1 = split_data(1);
            if(strcmp(str1, str2))
                try%存储为double类型
                    Data(1) = str2double(split_data(3));%time
                    Data(2) = str2double(split_data(12))*1.0E-09;%gyrox
                    Data(3) = str2double(split_data(11))*1.0E-09*-1;%gyroy
                    Data(4) = str2double(split_data(10))*1.0E-09;%gyroz
                    Data(5) = str2double(split_data(9))*2.0E-08;%acclx
                    Data(6) = str2double(split_data(8))*2.0E-08*-1;%accly
                    Data(7) = str2double(split_data(7))*2.0E-08;%acclz
                catch
                    disp('转换错误：该列包含非数值数据。');
                end
                break;
            end
        end
    end
end